<?php






?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?php echo $Language->ProjectPhrase("Title") ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<meta name="generator" content="Butterfly Portal"></meta>
    <script src="<?php echo $apppath; ?><?php echo $appname; ?>/js/jquery.min.js"></script>
    <link href="/butterflyportal/css/portal.css" rel="stylesheet" type="text/css"></link>
    <link href="/butterflyportal/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css"></link>
    <!--<script src="/butterflyportal/bootstrap/js/bootstrap.js"></script> bug-->

    <?php

    //$_GET["Lang"]=strtoupper($Language->LanguageId);
    if ($lang == "ar") {
        ?>
        <link href="/butterflyportal/css/portal_ar.css" rel="stylesheet" type="text/css"></link>
    <?php } ?>
    <link href="<?php echo $apppath; ?><?php echo $appname; ?>/css/jquery.ui.css" rel="stylesheet" type="text/css"></link>

    <script src="<?php echo $apppath; ?><?php echo $appname; ?>/js/jquery-ui.custom.min.js" type="text/javascript"></script>


    <script type="text/javascript" src="/js/custom.js"></script>

    <script src="<?php echo $apppath; ?><?php echo $appname; ?>/js/jquery.blockUI.js" type="text/javascript"></script>

    <link type="text/css" rel="stylesheet" href="/css/jquery.autocomplete.css"></link>
    <?php loadfile("/js/fancybox/jquery.fancybox.js","js"); ?>
    <?php loadfile("/js/fancybox/jquery.fancybox.css","css"); ?>
    <?php loadfile("/js/parsley.js","js"); ?>



    <script type="text/javascript" src="<?php echo $apppath; ?><?php echo $appname; ?>/js/controls.js"></script>
    <script type="text/javascript" src="<?php echo $apppath; ?><?php echo $appname; ?>/js/jquery.jscrollpane.min.js"></script>

    <!--<script type="text/javascript" src="<?php echo $apppath; ?><?php echo $appname; ?>/js/hover.js"></script>
<script type="text/javascript" src="<?php echo $apppath; ?><?php echo $appname; ?>/js/tabbedContent.js"></script>
<script type="text/javascript" src="<?php echo $apppath; ?><?php echo $appname; ?>/js/hoverIntent.js"></script>-->
    <script type="text/javascript" src="<?php echo $apppath; ?><?php echo $appname; ?>/js/nicEdit.js"></script>
    <script src="<?php echo $apppath; ?><?php echo $appname; ?>/js/swfobject.js" type="text/javascript"></script>
    <script src="<?php echo $apppath; ?><?php echo $appname; ?>/js/divscroll.js" type="text/javascript"></script>
    <script  src="<?php echo $apppath; ?><?php echo $appname; ?>/js/scripts.js" type="text/javascript"></script>
    <script type="text/javascript" src="http://api.yamli.com/js/yamli_api.js"></script>
    <script type="text/javascript" src="<?php echo $apppath; ?><?php echo $appname; ?>/js/jquery.simplemodal.1.4.1.min.js"></script>
    <script type="text/javascript" src="<?php echo $apppath; ?><?php echo $appname; ?>/js/jquery.chrono.min_.js"></script>
    <script type="text/javascript" src="<?php echo $apppath; ?><?php echo $appname; ?>/js/superfish.js"></script>
    <script src="<?php echo $apppath; ?><?php echo $appname; ?>/js/jquery.mousewheel.js" type="text/javascript"></script>
    <link href="<?php echo $apppath; ?><?php echo $appname; ?>/css/banner_style.css" rel="stylesheet" type="text/css">
    <link href="<?php echo $apppath; ?><?php echo $appname; ?>/css/prettyGallery.css" rel="stylesheet" type="text/css">
    <link href="<?php echo $apppath; ?><?php echo $appname; ?>/css/prettyPhoto.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery.fullscreen-min.js"></script>
    <script type="text/javascript" src="/js/bootbox.min.js"></script>

    <script type="text/javascript" src="ckeditor/ckeditor.js"></script>

<script src="colorpicker/301a.js"></script>
<?php if ($dir=="ltr") {?>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'></link> 
<!-- <link href="<?php echo $apppath; ?><?php echo $appname; ?>/css/fontcss3.css" rel="stylesheet" type="text/css" media="all"></link> -->
<?php } else { ?>
<link href="<?php echo $apppath; ?><?php echo $appname; ?>/css/fontcss3ar.css" rel="stylesheet" type="text/css" media="all"></link> 
<!--<script type="text/javascript" src="http://api.yamli.com/js/yamli_api.js"></script>-->
<?php }  ?>
</head>
<body <?php echo "lang=\"".$lang."\"" ?>  <?php echo "dir=\"".$dir."\"" ?> >
<div id='colorpicker301' class='colorpicker301'></div>


<?php if (basename($_SERVER["SCRIPT_FILENAME"], '.php')=="index") { ?>

<?php 
copyright();
?>


<script type="text/javascript">
<!--
var EW_LANGUAGE_ID = "<?php echo $gsLanguage ?>";
var EW_DATE_SEPARATOR = "/"; 
if (EW_DATE_SEPARATOR == "") EW_DATE_SEPARATOR = "/"; // Default date separator
var EW_UPLOAD_ALLOWED_FILE_EXT = "jpg,jpeg,png,flv,gif,css,swf,flv,JPG,PNG,GIF,FLV,JPEG,pdf,doc,docx,zip,rar,pptx,ppt,gzip,mp3,xls,XLS"; // Allowed upload file extension
var EW_FIELD_SEP = ", "; // Default field separator

// Ajax settings
var EW_RECORD_DELIMITER = "\r";
var EW_FIELD_DELIMITER = "|";
var EW_LOOKUP_FILE_NAME = "ewlookup7.php"; // lookup file name

// Common JavaScript messages
var EW_ADDOPT_BUTTON_SUBMIT_TEXT = "<?php echo ew_JsEncode2(ew_BtnCaption($Language->Phrase("AddBtn"))) ?>";

var EW_BUTTON_CANCEL_TEXT = "<?php echo ew_JsEncode2(ew_BtnCaption($Language->Phrase("CancelBtn"))) ?>";

//-->
</script>

<script type="text/javascript">
    function iframeHeight() {
        var newHeight = $j(window).height();
        var buffer = 180;     // space required for any other elements on the page
        var newIframeHeight = newHeight - buffer;
        $j('iframe').css('height',newIframeHeight);    //this will aply to all iframes on the page, so you may want to make your jquery selector more specific.
    }

    // When DOM ready
    $(function() {
        window.onresize = iframeHeight;
    }
</script>




<script src="colorpicker/301a.js"></script>
<!-- <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=true"></script> -->


	<!-- header (begin) --><!-- *** Note: Only licensed users are allowed to change the logo *** -->
  <div class="ewHeaderRow">
<?php  
echo "<img  height=\"90\" border=\"0\" src=\"".getFileManagerImage(getObjByKey("portal","sitelogo_lt_file","id",$portalId))."\">";		
?>
<div class="ewLangForm"><form class="ewForm">
</form></div>
  </div>  

	<!-- header (end) -->
	<!-- content (begin) -->
				<!-- left column (begin) -->

			<!-- left column (end) -->
  <table cellspacing="0" class="ewContentTable">
<tr>
<td class="ewLeftMenu" valign="top">
<?php include "ewmenu.php" ?>
</td>
	    <td class="ewContentColumn">

	 <?php } ?> 
	 
	  <div class="ewMainColumn">  
	 <!-- 
	    <br/>
	    <input type="text" name="cmd" id="cmd"  /><br/>
	    
	    <script type="text/javascript">

	    //
$(function(){
  $("#cmd").change(function(){


	  if ($(this).val()=="creer un contenu") location.href="/butterflyportal/?table=portal_content&filter=1";
	  if ($(this).val()=="modifier le portail") location.href="/butterflyportal/?table=portal&filter=1";
	  if ($(this).val()=="flux de travail") location.href="/butterflyportal/?table=portal_workflow&filter=1";
	   
	  
	  
  })
})

	    </script>
	     -->
	    
		<?php if (getParameter("succes")) { ShowSuccess(getParameter("succes")); }elseif (getParameter("error")) { ShowError(getParameter("error")); }elseif (getParameter("warning")) { ShowWarning(getParameter("warning")); }  ?>
	

<script type="application/javascript">



</script>